const router = require('koa-router')()
const { verifyAuth } = require("../middleware/auth_middleware")
const {createRole,getRoleList,EditRole,DeleteRole}=require("../controller/role_controller")
router.prefix('/roles')
router.post("/", verifyAuth, createRole)
router.get("/", verifyAuth, getRoleList)
router.put("/:id", verifyAuth, EditRole)
router.delete("/:id",verifyAuth,DeleteRole)
module.exports = router